package com.lecture.hibernate.pojo;

import java.util.HashSet;
import java.util.Set;

/**
 * AbstractRole entity provides the base persistence definition of the Role
 * entity. @author MyEclipse Persistence Tools
 */

public abstract class AbstractRole implements java.io.Serializable {

	// Fields

	private Integer roleId;
	private String roleName;
	private Integer rolePrivilige;
	private String roleRemark;
	private Set accounts = new HashSet(0);

	// Constructors

	/** default constructor */
	public AbstractRole() {
	}

	/** full constructor */
	public AbstractRole(String roleName, Integer rolePrivilige,
			String roleRemark, Set accounts) {
		this.roleName = roleName;
		this.rolePrivilige = rolePrivilige;
		this.roleRemark = roleRemark;
		this.accounts = accounts;
	}

	// Property accessors

	public Integer getRoleId() {
		return this.roleId;
	}

	public void setRoleId(Integer roleId) {
		this.roleId = roleId;
	}

	public String getRoleName() {
		return this.roleName;
	}

	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}

	public Integer getRolePrivilige() {
		return this.rolePrivilige;
	}

	public void setRolePrivilige(Integer rolePrivilige) {
		this.rolePrivilige = rolePrivilige;
	}

	public String getRoleRemark() {
		return this.roleRemark;
	}

	public void setRoleRemark(String roleRemark) {
		this.roleRemark = roleRemark;
	}

	public Set getAccounts() {
		return this.accounts;
	}

	public void setAccounts(Set accounts) {
		this.accounts = accounts;
	}

}